package com.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.common.R;
import com.demo.domain.User;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Map;


public interface UserService extends IService<User> {

    /**
     * 发送验证码
     * @param user
     * @param session
     * @return
     */
    R<String> sendMsg(User user, HttpSession session);

    /**
     * 登录验证
     * @param map
     * @param session
     * @return
     */
    R<User> login(@RequestBody Map map, HttpSession session);

    /**
     * 退出登录
     * @param session
     * @return
     */
    R<String> loginout(HttpSession session);
}
